#################################################################################
#  ETFRoot project, Anyang Normal University && IMP-CAS
#  \brief For building executables that do not want to be run as ROOT macros
#  \author SUN Yazhou, asia.rabbit@163.com
#  \since 2021-10-06
#  \date 2021-12-05
#  \attention
#  changelog
#  <table>
#  <tr>  <th>Date         <th>Author      <th>Description                  </tr>
#  <tr>  <td>2021-10-06   <td>Asia Sun    <td>file created                 </tr>
#  </table>
#  \copyright Copyright (c) 2021 Anyang Normal U. && IMP-CAS with LGPLv3 LICENSE
#################################################################################

# copy the macros to the build directory
file(GLOB_RECURSE VAR ${PROJECT_SOURCE_DIR}/macro/*.C)
file(COPY ${VAR} DESTINATION ${PROJECT_BINARY_DIR})

link_directories(${FAIRROOT_LIBRARY_DIR})
link_libraries(ETF::ETFBase ETF::ETFUser # ETF libraries
  Base ParBase # Fair libraries
  Geom ${ROOT_LIBRARIES} # root libraries
)

# add_executable(unpack unpack.cxx)
# add_executable(te test.cxx)
add_executable(ana ana.cxx)
add_executable(anaL anaL.cxx)
